//
//  ViewController.m
//  test1111111
//
//  Created by lanouhn on 16/7/18.
//  Copyright © 2016年 王晓伟. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSLog(@"hfisdhfdshfdshfjdsu时候的发货的发货的萨芬绝对是的发动机上飞机的说法呢第三方很多事");
    UIButton *buttonName = [UIButton buttonWithType:UIButtonTypeCustom];
    buttonName.frame = CGRectMake(0, 0, 44, 44);
    buttonName.backgroundColor = [UIColor redColor];
    [buttonName setTitle:@"fd" forState:(UIControlStateNormal)];
    [self.view addSubview:buttonName];

    //提示框
    UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:@"屌" message:@"哈哈" preferredStyle:(UIAlertControllerStyleAlert)];
    // 添加输入框
    [alertVC addTextFieldWithConfigurationHandler:nil];
    
    // 取消按钮
    UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:(UIAlertActionStyleCancel) handler:^(UIAlertAction * _Nonnull action) {
        //取消的内容
    }];
    // 确定按钮
    UIAlertAction *sendAction = [UIAlertAction actionWithTitle:@"确定" style:(UIAlertActionStyleDefault) handler:^(UIAlertAction * _Nonnull action) {
        //确定的内容
    }];
    //将事件添加到提示框上
    [alertVC addAction:cancelAction];
    [alertVC addAction:sendAction];
    //弹出提示框(C层)
    [self presentViewController:alertVC animated:YES completion:nil];

    NSLog(@"12121321");


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
